package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.vo.CategoryVo;
import com.spzx.product.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ICategoryService extends IService<Category>
{
    /**
     * 商品分类Service接口
     */
    List<Category> treeList(Long parentId);

    /**
     * 根据分类id获取全部本级及上级节点id列表
     * @param id
     * @return
     */
     List<Long> getAllCategoryIdList(Long id);

    //商品分类导出
    void exportData(HttpServletResponse response);

    //商品分类导入
    void importData(MultipartFile file);


    //=========================前台页面接口=========================
    List<CategoryVo> getOnecategory();

    List<CategoryVo> tree();
}
